package com.mrd.gtimp.base.action;


import com.mrd.constant.MsgConstants;
import com.mrd.framework.config.web.json.Result;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p> application name: sample <p> copyright: Copyright@2012 明睿达科技有限公司
 */

/**
 * @author winaya
 */

@Controller
@RequestMapping("/base")
public class AopTestAction {

    private static final long serialVersionUID = -7478772508301862410L;

    /**
     * 测试啊
     */
    //// TODO: 2016/8/13
//    @Permissions(permissionsId = "1111")
    @RequestMapping("/t-")
    public String test() {
        System.out.println("进入被代理方法内部");
        //// TODO: 2016/8/13
        return null;
    }

    public String fail() {
        Result msg;
        msg = Result.newFailInstance(MsgConstants.SAVE_FAIL,"权限认证失败");
        System.out.println("进入权限认证失败页面!");
        return "fail";
    }
}
